package cz.cizek.tutorials.designpatterns.immutableobject.immutable;


/**
 * @author jcizek
 */
public class Main {

    public static void main(String[] args) {
        Fraction fraction1 = new Fraction(2, 1);
        Fraction fraction2 = fraction1;

        System.out.println("Before operation fraction 1 :" + fraction1.toString() +
                " fraction 2:" + fraction2.toString());
        fraction2 = fraction1.multiply(fraction2);
        System.out.println("After operation fraction 1 :" + fraction1.toString() +
                " fraction 2:" + fraction2.toString());
    }
}
